import yagmail

def send_mail():
    mail=yagmail.SMTP(user="3369588519@qq.com",password="nmwzsytvaszxdbgf",host="smtp.qq.com")
    mail.send(to="3369588519@qq.com",subject="测试报告",contents=['../baogao/baogao.html'])